package com.erp.erp_entitys.Inquiry;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 询盘产品
 */
@ApiModel(value = "询盘登记产品实体类")
public class InquiryProductEntity {
    /**
     * 主键
     */
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 产品编码
     */
    @ApiModelProperty(value = "产品编码")
    private String productNo;

    /**
     * 规格编码
     */
    @ApiModelProperty(value = "规格编码")
    private String specNo;

    /**
     * 规格说明
     */
    @ApiModelProperty(value = "规格说明")
    private String normExplain;

    /**
     * 中文名称
     */
    @ApiModelProperty(value = "中文名称")
    private String chineseName;

    /**
     * 英文名称
     */
    @ApiModelProperty(value = "英文名称")
    private String englishName;

    /**
     * 中文描述
     */
    @ApiModelProperty(value = "中文描述")
    private String chineseDesc;

    /**
     * 英文描述
     */
    @ApiModelProperty(value = "英文描述")
    private String englishDesc;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 颜色
     */
    @ApiModelProperty(value = "颜色")
    private String colour;

    /**
     * 客户货号
     */
    @ApiModelProperty(value = "客户货号")
    private String customerArticleNo;

    /**
     * 理论单价
     */
    @ApiModelProperty(value = "理论单价")
    private BigDecimal price;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private BigDecimal amount;

    /**
     * 金额小计
     */
    @ApiModelProperty(value = "金额小计")
    private BigDecimal priceSubtotal;

    /**
     * 询价工厂
     */
    @ApiModelProperty(value = "询价工厂")
    private String factory;

    /**
     * 工厂售价
     */
    @ApiModelProperty(value = "工厂售价")
    private BigDecimal cost;

    /**
     * 询盘id外键
     */
    @ApiModelProperty(value = "询盘id外键")
    private Integer inquiryId;

    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径")
    private String photoUrl;

    /**
     * 平台询价单号
     */
    private String platformInquiryNo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo == null ? null : productNo.trim();
    }

    public String getSpecNo() {
        return specNo;
    }

    public void setSpecNo(String specNo) {
        this.specNo = specNo == null ? null : specNo.trim();
    }

    public String getNormExplain() {
        return normExplain;
    }

    public void setNormExplain(String normExplain) {
        this.normExplain = normExplain == null ? null : normExplain.trim();
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName == null ? null : chineseName.trim();
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName == null ? null : englishName.trim();
    }

    public String getChineseDesc() {
        return chineseDesc;
    }

    public void setChineseDesc(String chineseDesc) {
        this.chineseDesc = chineseDesc == null ? null : chineseDesc.trim();
    }

    public String getEnglishDesc() {
        return englishDesc;
    }

    public void setEnglishDesc(String englishDesc) {
        this.englishDesc = englishDesc == null ? null : englishDesc.trim();
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour == null ? null : colour.trim();
    }

    public String getCustomerArticleNo() {
        return customerArticleNo;
    }

    public void setCustomerArticleNo(String customerArticleNo) {
        this.customerArticleNo = customerArticleNo == null ? null : customerArticleNo.trim();
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPriceSubtotal() {
        return priceSubtotal;
    }

    public void setPriceSubtotal(BigDecimal priceSubtotal) {
        this.priceSubtotal = priceSubtotal;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory == null ? null : factory.trim();
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public Integer getInquiryId() {
        return inquiryId;
    }

    public void setInquiryId(Integer inquiryId) {
        this.inquiryId = inquiryId;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }

    public String getPlatformInquiryNo() {
        return platformInquiryNo;
    }

    public void setPlatformInquiryNo(String platformInquiryNo) {
        this.platformInquiryNo = platformInquiryNo;
    }


    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("InquiryProductEntity").append('[')
                .append("id=")
                .append(id)
                .append(",productNo=")
                .append(productNo)
                .append(",specNo=")
                .append(specNo)
                .append(",normExplain=")
                .append(normExplain)
                .append(",chineseName=")
                .append(chineseName)
                .append(",englishName=")
                .append(englishName)
                .append(",chineseDesc=")
                .append(chineseDesc)
                .append(",englishDesc=")
                .append(englishDesc)
                .append(",unit=")
                .append(unit)
                .append(",colour=")
                .append(colour)
                .append(",customerArticleNo=")
                .append(customerArticleNo)
                .append(",price=")
                .append(price)
                .append(",amount=")
                .append(amount)
                .append(",priceSubtotal=")
                .append(priceSubtotal)
                .append(",factory=")
                .append(factory)
                .append(",cost=")
                .append(cost)
                .append(",inquiryId=")
                .append(inquiryId)
                .append(",photoUrl=")
                .append(photoUrl)
                .append(",platformInquiryNo=")
                .append(platformInquiryNo)
                .append(']');
        return sb.toString();
    }
}